import axios from "../../utils/axios";

// 添加回执
export function add(query) {
    return axios({
        url: "/admin/needs/edit",
        method: "post",
        data: query
    });
}

// 需求列表
export function getList(query){
    return axios({
        url: "/admin/needs/index",
        method: "get",
        params: query
    })
}

// 需求类型
export function getNeedType(query){
    return axios({
        url: "/admin/needs/getNeedsType",
        method: "post",
        data: query
    })
}

// 删除
export function delNeeds(query){
    return axios({
        url: "/admin/needs/delInfo",
        method: "get",
        params: query
    })
}
